package com.ruoyi.project.mall.service.impl;


import com.ruoyi.common.utils.bootdo.R;
import com.ruoyi.project.mall.dao.MallServiceDao;
import com.ruoyi.project.mall.domain.MallServiceDO;
import com.ruoyi.project.mall.service.MallServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class MallServiceServiceImpl implements MallServiceService {
	@Autowired
	private MallServiceDao mallServiceDao;
	
	@Override
	public MallServiceDO get(String id){
		return mallServiceDao.get(id);
	}
	
	@Override
	public List<MallServiceDO> list(Map<String, Object> map){
		return mallServiceDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return mallServiceDao.count(map);
	}
	
	@Override
	public int save(MallServiceDO mallService){
		return mallServiceDao.save(mallService);
	}
	
	@Override
	public int update(MallServiceDO mallService){
		return mallServiceDao.update(mallService);
	}
	
	@Override
	public int remove(String id){
		return mallServiceDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return mallServiceDao.batchRemove(ids);
	}

    @Override
    public List<MallServiceDO> likeList(Map<String, Object> map){
        return mallServiceDao.likeList(map);
    }
    @Override
    public int likeListCount(Map<String, Object> map){
        return mallServiceDao.likeListCount(map);
    }

    @Override
    public R getServers(Map<String, Object> params) {
		params.put("delFlag","0");
		Map<String,Object> map = mallServiceDao.getServers(params);
		return R.ok().put("data",map);

	}

}
